package edu.whu.notepal.service;

import edu.whu.notepal.dto.UserDTO;
import edu.whu.notepal.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author 陈磊
 * @description 针对表【tb_user】的数据库操作Service
 * @createDate 2022-11-12 00:37:19
 */
public interface UserService extends IService<User> {

    void getCode(String email);

    String login(UserDTO userDTO);

    void register(UserDTO userDTO);


    void addUser2Redis(String token,User user);
}